package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

public interface MemberDao {
    //根据手机号查询会员信息
    Member findByTelephone(String telephone);

    //添加会员
    void add(Member member);


    // 根据条件查询
    Page<Member> findQueryPage(String queryString);

    // 根据Id 查询 会员信息

    Member findMessageByMemberId(Integer findMessageByMemberId);




    //根据月份查询会员每月的个数
    Integer findMemberCountByMonths(String month);

    //本日新增会员数
    Integer findMemberCountByDate(String reportDate);

    //总会员数
    Integer findMemberTotalCount();

    Integer findMemberCountAfterDate(String thisWeekMonday);

    //xyl   按年龄段查询人数
    public Map getAgeDistribution();

    void editMemberInfo(Member member);


    void edit(Member member);

    void delete(Integer id);
}
